import {createApp} from 'vue'
import App from '@/App.vue'
import router from '@/router/index.ts'
import {$local, $session} from "@/store/index.ts"
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import "element-plus/theme-chalk/el-loading.css";
import "element-plus/theme-chalk/el-message.css";
import "element-plus/theme-chalk/el-notification.css";
import "element-plus/theme-chalk/el-message-box.css";
import "element-plus/theme-chalk/el-drawer.css";

const app: any = createApp(App)
app.use(router);
app.use($local).use($session);
app.mount('#app');

//注册所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
// createApp(App).mount('#app')
